package com.example.demoserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName inte_goods
 */
@TableName(value ="inte_goods")
public class InteGoods implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String goodsname;

    /**
     * 
     */
    private String goodsclass;

    /**
     * 
     */
    private String goodscode;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getGoodsname() {
        return goodsname;
    }

    /**
     * 
     */
    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname;
    }

    /**
     * 
     */
    public String getGoodsclass() {
        return goodsclass;
    }

    /**
     * 
     */
    public void setGoodsclass(String goodsclass) {
        this.goodsclass = goodsclass;
    }

    /**
     * 
     */
    public String getGoodscode() {
        return goodscode;
    }

    /**
     * 
     */
    public void setGoodscode(String goodscode) {
        this.goodscode = goodscode;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InteGoods other = (InteGoods) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getGoodsname() == null ? other.getGoodsname() == null : this.getGoodsname().equals(other.getGoodsname()))
            && (this.getGoodsclass() == null ? other.getGoodsclass() == null : this.getGoodsclass().equals(other.getGoodsclass()))
            && (this.getGoodscode() == null ? other.getGoodscode() == null : this.getGoodscode().equals(other.getGoodscode()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getGoodsname() == null) ? 0 : getGoodsname().hashCode());
        result = prime * result + ((getGoodsclass() == null) ? 0 : getGoodsclass().hashCode());
        result = prime * result + ((getGoodscode() == null) ? 0 : getGoodscode().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", goodsname=").append(goodsname);
        sb.append(", goodsclass=").append(goodsclass);
        sb.append(", goodscode=").append(goodscode);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}